﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Renci.iRods.Common;

namespace Renci.iRods.Data
{
    public class RuleDataVariableMap : DataItem
    {
        [iRodsColumn(DataObjectAttributes.COL_DVM_ID)]
        public long ID { get; internal set; }

        [iRodsColumn(DataObjectAttributes.COL_DVM_VERSION)]
        public string Version { get; internal set; }

        [iRodsColumn(DataObjectAttributes.COL_DVM_BASE_NAME)]
        public string BaseName { get; internal set; }

        [iRodsColumn(DataObjectAttributes.COL_DVM_EXT_VAR_NAME)]
        public string ExternalVariableName { get; internal set; }

        [iRodsColumn(DataObjectAttributes.COL_DVM_CONDITION)]
        public string Condition { get; internal set; }

        [iRodsColumn(DataObjectAttributes.COL_DVM_INT_MAP_PATH)]
        public string InitMapPath { get; internal set; }

        [iRodsColumn(DataObjectAttributes.COL_DVM_STATUS)]
        public int Status { get; internal set; }

        [iRodsColumn(DataObjectAttributes.COL_DVM_OWNER_NAME)]
        public string OwnerName { get; internal set; }

        [iRodsColumn(DataObjectAttributes.COL_DVM_OWNER_ZONE)]
        public string OwnerZone { get; internal set; }

        [iRodsColumn(DataObjectAttributes.COL_DVM_COMMENT)]
        public string Comment { get; internal set; }

        [iRodsColumn(DataObjectAttributes.COL_DVM_CREATE_TIME)]
        public DateTime CreatedTime { get; internal set; }

        [iRodsColumn(DataObjectAttributes.COL_DVM_MODIFY_TIME)]
        public DateTime ModifiedTime { get; internal set; }

        internal RuleDataVariableMap(IRodsConnection connection)
            : base(connection)
        {

        }

    }
}
